broadway: Ensure images are decoded, not only loaded
authorAlexander Larsson <alexl@redhat.com>
Fri, 13 Mar 2020 07:56:56 +0000 (08:56 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 13 Mar 2020 14:00:24 +0000 (15:00 +0100)
commit43598fc5f2ed2bc1b1655b593172b8378cb1cfce
tree1f687ceab63b1097fb8869addbe4a1d5fab6a0bb
parenta4b718da4ebf7854e91b2a4c6e833db44caa6aff
broadway: Ensure images are decoded, not only loaded

In firefox, onload will trigger when the image is loaded, but at
that point it may not be decoded yet so showing it will sometimers
trigger flashes. We use the new decode() feature instead which ensures
both that the image is loaded *and* decoded, thus fixing the flashes.
gdk/broadway/broadway.js